package c.j.a.d.b.i.a;

import c.j.a.d.b.i.j;

/* compiled from: DownloadPreconnecter */
public final class c implements Runnable {
    public final /* synthetic */ String a;
    public final /* synthetic */ j b;

    public c(String str, j jVar) {
        this.a = str;
        this.b = jVar;
    }

    /* JADX WARNING: Removed duplicated region for block: B:22:0x0045 A:{Catch:{ Exception -> 0x0081 }} */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x004d A:{Catch:{ Exception -> 0x0081 }} */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x0078  */
    public void run() {
        /*
        r10 = this;
        r0 = r10.a;
        r0 = android.text.TextUtils.isEmpty(r0);
        r1 = 0;
        if (r0 == 0) goto L_0x0013;
    L_0x0009:
        r0 = r10.b;
        if (r0 == 0) goto L_0x0012;
    L_0x000d:
        r0 = (c.j.a.c.g.q) r0;
        r0.a(r1);
    L_0x0012:
        return;
    L_0x0013:
        r2 = 0;
        r4 = 0;
        r5 = 0;
        r8 = 0;
        r6 = 0;
        r0 = c.j.a.d.b.n.a.j(r4, r5, r6, r8);	 Catch:{ Exception -> 0x0081 }
        r4 = c.j.a.d.b.i.a.a.b.a;	 Catch:{ Exception -> 0x0081 }
        r5 = r10.a;	 Catch:{ Exception -> 0x0081 }
        r6 = r4.a;	 Catch:{ Exception -> 0x0081 }
        r5 = r6.get(r5);	 Catch:{ Exception -> 0x0081 }
        r5 = (c.j.a.d.b.i.a.d) r5;	 Catch:{ Exception -> 0x0081 }
        r6 = 0;
        r7 = 1;
        if (r5 == 0) goto L_0x0042;
    L_0x002f:
        r8 = r5.h;	 Catch:{ Exception -> 0x0081 }
        if (r8 == 0) goto L_0x0034;
    L_0x0033:
        goto L_0x0043;
    L_0x0034:
        r8 = r5.g();	 Catch:{ Exception -> 0x0081 }
        if (r8 == 0) goto L_0x0042;
    L_0x003a:
        r5 = r5.g;	 Catch:{ Exception -> 0x0081 }
        if (r5 == 0) goto L_0x0042;
    L_0x003e:
        r6 = 1;
        goto L_0x0042;
    L_0x0040:
        r0 = move-exception;
        goto L_0x0087;
    L_0x0042:
        r7 = r6;
    L_0x0043:
        if (r7 == 0) goto L_0x004b;
    L_0x0045:
        r5 = r10.a;	 Catch:{ Exception -> 0x0081 }
        r1 = r4.a(r5, r0);	 Catch:{ Exception -> 0x0081 }
    L_0x004b:
        if (r1 != 0) goto L_0x0072;
    L_0x004d:
        r5 = new c.j.a.d.b.i.a.d;	 Catch:{ Exception -> 0x0081 }
        r6 = r10.a;	 Catch:{ Exception -> 0x0081 }
        r5.m6438init(r6, r0, r2);	 Catch:{ Exception -> 0x0081 }
        r5.e();	 Catch:{ Exception -> 0x006f, all -> 0x006c }
        r0 = r5.g;	 Catch:{ Exception -> 0x006f, all -> 0x006c }
        if (r0 == 0) goto L_0x006a;
    L_0x005b:
        r0 = r10.a;	 Catch:{ Exception -> 0x006f, all -> 0x006c }
        r1 = r4.a;	 Catch:{ Exception -> 0x006f, all -> 0x006c }
        monitor-enter(r1);	 Catch:{ Exception -> 0x006f, all -> 0x006c }
        r2 = r4.a;	 Catch:{ all -> 0x0067 }
        r2.put(r0, r5);	 Catch:{ all -> 0x0067 }
        monitor-exit(r1);	 Catch:{ all -> 0x0067 }
        goto L_0x006a;
    L_0x0067:
        r0 = move-exception;
        monitor-exit(r1);	 Catch:{ all -> 0x0067 }
        throw r0;	 Catch:{ Exception -> 0x006f, all -> 0x006c }
    L_0x006a:
        r1 = r5;
        goto L_0x0072;
    L_0x006c:
        r0 = move-exception;
        r1 = r5;
        goto L_0x0087;
    L_0x006f:
        r0 = move-exception;
        r1 = r5;
        goto L_0x0082;
    L_0x0072:
        r0 = r1.c;	 Catch:{ Exception -> 0x0081 }
        r2 = r10.b;	 Catch:{ Exception -> 0x0081 }
        if (r2 == 0) goto L_0x007d;
    L_0x0078:
        r2 = (c.j.a.c.g.q) r2;
        r2.a(r0);	 Catch:{ Exception -> 0x0081 }
    L_0x007d:
        r1.c();	 Catch:{ all -> 0x0086 }
        goto L_0x0086;
    L_0x0081:
        r0 = move-exception;
    L_0x0082:
        r0.printStackTrace();	 Catch:{ all -> 0x0040 }
        goto L_0x007d;
    L_0x0086:
        return;
    L_0x0087:
        r1.c();	 Catch:{ all -> 0x008a }
    L_0x008a:
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.j.a.d.b.i.a.c.run():void");
    }
}
